/**
 *  fileName:test pop
 *  time:2020/9/16
 *  todo:$END$
 */

let arr = [1,2,3]
let item1 = arr.shift()
console.log('arr:',arr)
// console.log('item:',item)

let ctx = {
  request:{
    body:{
      channel:'123',
      appkey:'456'
    }
  }
}
const { channel, appkey, type, build_type } = ctx.request.body
// type: 1：打包成云应用 2：打包成本地应用

console.log('appkey:',appkey)
// ctx.logger.info('createApp data:', ctx.request.body)

let item = ctx.request.body
if (!item.type) item.type = 1
if (!item.build_type) item.build_type = 1
item.build_time = new Date().getTime()
// if (appid && random) {
console.log('item:',item)
console.log('appkey----------:',appkey)
console.log('channel:',channel)
if(channel&&appkey){
  console.log('channel:',channel)
  console.log('appkey:',appkey)
}
